package com.wsc.wsckeeper.persistence.dao;

import java.sql.SQLException;
import java.util.List;

import com.j256.ormlite.dao.Dao;
import com.wsc.wsckeeper.model.entity.CurrencyE;

@SuppressWarnings("rawtypes")
public class CurrencyDAO extends GenericDao {

	public static CurrencyE create(CurrencyE currency) throws SQLException, Exception {
		Dao<CurrencyE, Long> dao = getCurrencyDao();
		dao.create(currency);
		return currency;
	}

	public static List<CurrencyE> queryForAll() throws SQLException, Exception {
		Dao<CurrencyE, Long> dao = getCurrencyDao();
		return dao.queryForAll();
	}
}
